package com.bbg.amyam.domain.model;

import javax.persistence.Lob;
import javax.validation.constraints.NotNull;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord(inheritanceType = "TABLE_PER_CLASS", finders = { "findDocumentsByFileNameEquals", "findDocumentsByDocIdEquals" })
public abstract class Document {


    private String fileName;


    private String fileType;

    @NotNull
    @Lob
    private byte[] content;


    private Long fileSize;

    private String docId;
}
